import java.util.List;

/**
 * Created with IntelliJ IDEA
 * Description
 * User: 王杰
 * Date: 2025-05-26
 * Time: 11:25
 */
public interface HelloService {

    // 只能是 public 所以不用写
    void sayHello();

    // 默认方法
    // 此处必须有 关键字 default 否则报错 interface abstract methods cannot have body
    default void saySomething() {
        sayHello();
        sayEndHello();
    }

    // 私有方法
    private void sayEndHello(){
        System.out.println("Hello~~");
    }

}
